

package top.continew.admin.controller.question;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import top.continew.admin.question.manger.service.model.QueryPoint;
import top.continew.admin.question.manger.service.PointService;
import top.continew.starter.web.model.R;

@Controller
@RequestMapping("point")
public class PointController {

    private PointService pointService;

    public PointController(PointService pointService) {
        this.pointService = pointService;
    }

    @GetMapping
    public R point(QueryPoint queryPoint) throws Exception {
        return R.ok(pointService.getPointList(queryPoint));
    }
}
